home *** CD-ROM | disk | FTP | other *** search
/ Mission 3 / Mission 3.zip / Mission 3.iso / texte / qed / src / icon.h < prev    next >
C/C++ Source or Header  |  1998-03-05  |  932b  |  36 lines

  1. #ifndef _qed_icon_h_
  2. #define _qed_icon_h_
  3.  
  4. #define MAX_ICON_ANZ 30
  5.  
  6. #define CLIP_ICON        0
  7. #define SUB_ICON        1024
  8.  
  9. #define ALL_TYPES        -1
  10.  
  11.  
  12. extern int        all_icons        (int *c_obj_nr);
  13.  
  14. extern int        decl_icon_type    (bool (*test)(int,int),
  15.                                           int    (*edit)(int,int),
  16.                                          void    (*exist)(int,SET),
  17.                                          bool    (*drag)(int,int));
  18. extern bool        add_icon            (int type_id, int icon);
  19. extern void        del_icon            (int icon);
  20. extern int        icon_anz            (int type_id);
  21.  
  22. /* <0 : Fehler bei der Ausführung    */
  23. /*    =0 : Nicht möglich                    */
  24. /* >0 : Erfolgreich ausgeführt        */
  25. extern int        do_icon            (int icon, int action);
  26. extern void        do_all_icon        (int type_id, int action);
  27. extern bool        icon_test        (int icon, int action);
  28. extern int        icon_edit        (int icon, int action);
  29. extern void        icon_exist        (int icon, SET exist);
  30.  
  31. extern bool        icon_drag        (int dest_icon, int src_icon);
  32.  
  33. extern void        init_icon        (void);
  34.  
  35. #endif
  36.